package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDTO;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {
    //素材上传
    ResponseResult uploadPicture(MultipartFile multipartFile);

    //查询收藏的素材或全部
    PageResponseResult findlist(WmMaterialDTO wmMaterialDTO);


    //收藏素材 或 取消收藏
    ResponseResult updateCollect(Integer id, Short collect);

}
